// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2021-2023. All rights reserved.
 * Description: Implement pal kernel/groups.c
 * Author: Huawei OS Kernel Lab
 * Create: Mon Nov 15 20:17:53 2021
 */

#include <linux/cred.h>
#include <linux/export.h>

void groups_free(struct group_info *group_info)
{
}
EXPORT_SYMBOL(groups_free);

int in_group_p(kgid_t grp)
{
	return liblinux_pal_in_group_p(__kgid_val(grp));
}
EXPORT_SYMBOL(in_group_p);

int in_egroup_p(kgid_t grp)
{
	return liblinux_pal_in_egroup_p(__kgid_val(grp));
}
EXPORT_SYMBOL(in_egroup_p);

int groups_search(const struct group_info *group_info, kgid_t grp)
{
	return 1;
}
EXPORT_SYMBOL(groups_search);
